<!DOCTYPE html>
<html lang="zh">
<head>
	<th:block th:include="include :: header('创建阵列')" />
	<th:block th:include="include :: bootstrap-duallistbox-css" />
	
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>创建磁盘阵列</h5>
                    </div>  
                    <div class="ibox-content">
                        <form id="form" action="#" class="wizard-big">
						
							<div class="form-group">
                                <label class="col-sm-3 control-label">阵列名称：</label>
                                <div class="col-sm-8">
                                    <input id="firstname" name="firstname" class="form-control" type="text">
                                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 这里写点提示的内容</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">使用分区数：</label>
                                <div class="col-sm-8">
                                    <input id="lastname" name="lastname" class="form-control" type="text" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">备份分区数：</label>
                                <div class="col-sm-8">
                                    <input id="username" name="username" class="form-control" type="text" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">阵列等级：</label>
                                <div class="col-sm-8">
                                    <select class="form-control m-b" name="account">
                                        <option>raid1</option>
                                        <option>raid2</option>
                                        <option>raid3</option>
                                        <option>raid4</option>
                                    </select>
                                </div>
                            </div>
							
                            <select class="form-control dual_select" multiple>
                                <option value="1">/dev/sdb1</option>
                                <option value="2">/dev/sdb2</option>
                                <option value="3">/dev/sdb3</option>
                                <option selected value="4">/dev/sdb4</option>
                                <option selected value="5">/dev/sdb5</option>
                                <option value="6">/dev/sdb6</option>
                                <option value="7">/dev/sdb7</option>
                                <option value="8">/dev/sdb8</option>
                                <option value="9">/dev/sdb9</option>
                                <option value="10">/dev/sdb10</option>
                                <option value="11">/dev/sdb11</option>
                                <option value="12">/dev/sdb12</option>
                            </select>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: bootstrap-duallistbox-js" />
	
    <script type="text/javascript">
	    $('.dual_select').bootstrapDualListbox({
	    	nonSelectedListLabel: '可用分区',
            selectedListLabel: '已选分区',
            preserveSelectionOnMove: 'moved',
            moveOnSelect: false,           // 出现一个剪头，表示可以一次选择一个
            filterTextClear: '展示所有',
            moveSelectedLabel: "添加",
            moveAllLabel: '添加所有',
            removeSelectedLabel: "移除",
            removeAllLabel: '移除所有',
            infoText: '共{0}个',
            showFilterInputs: false,       // 是否带搜索
	        selectorMinimalHeight: 160
	    });
    </script>
</body>
</html>
